package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcFollowDataBoxygen;
import com.csun.cmny.provider.model.dto.follow.FollowDataPageQuery;
import com.csun.cmny.provider.model.dto.follow.UpFollowDataBoxygenDto;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-16 16:31
 * @Description: the interface dmc follow data boxygen service
 */
public interface DmcFollowDataBoxygenService extends IService<DmcFollowDataBoxygen> {

    /**
     * query dmc follow data boxygen list with page
     *
     * @param followDataPageQuery   follow data query page
     *
     * @return  the page info
     */
    PageInfo queryDmcFollowDataBoxygenListWithPage(FollowDataPageQuery followDataPageQuery);

    /**
     * up follow data boxygen
     *
     * @param upFollowDataBoxygenDto    up follow data boxygen dto
     * @param loginAuthDto              login auth dto
     *
     * @return  the int.
     */
    Integer upFollowDateBoxygen(UpFollowDataBoxygenDto upFollowDataBoxygenDto, LoginAuthDto loginAuthDto);

    /**
     * @description: TODO
     * @param:oldmanId 老人ID
     * @return: 老人设备最新状态
     * @throws
     * @author huangxm
     * @date 2019/3/15 11:19
     */
    Map<String,Object> getRecentData(Integer oldmanId);
}
